import en from './en.json';
import zh from './zh.json';

const languages = {
  en,
  zh,
};

export const getTranslation = (lang, key) => {
  return languages[lang] && languages[lang][key] ? languages[lang][key] : key;
};
